﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HWR_Ants.Classes
{
    public class Road
    {
        private double alpha = Tools.Tools.ActiveCurrentOptions.Parameter.Alpha;
        private double beta = Tools.Tools.ActiveCurrentOptions.Parameter.Beta;
        private double _Distance;
        private double _PheromonValue;

        public Road(double distance)
        {
            _Distance = distance;
        }

        public double Distance
        {
            get { return _Distance; }
        }

        public double PheromonValue
        {
            get { return _PheromonValue; }
            set { _PheromonValue = value; }
        }

        public double WeighedValue
        {
            get 
            {
                return (Math.Pow(_PheromonValue, alpha) * Math.Pow(1 / _Distance, beta)); 
            }
        }
    }
}
